<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<%-- <script type="text/javascript" --%>
<%-- 	src="${pageContext.request.contextPath}/Js/jquery-1.8.2.js"></script> --%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/Js/transition/Requerimientos.js"></script>

</head>
<body>


	<div class="frameREQ">
		<ul id="myTab" class="nav nav-tabs">
			<li class="active"><a href="#home" data-toggle="tab">
					Download </a></li>
			<li><a href="#ios" data-toggle="tab">Upload</a></li>
		</ul>
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade in active" id="home">
				<table border="0">
					<tr>
						<td>Customer profile:
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td><s:checkbox name="box1" id="box1" theme="simple"
								disabled="!enabledCheckCustomerProfile" /></td>
						<td>VoBo
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td><s:if test="existe1==true">
								<s:a action="savevobo" method="downCustomerProfile">
									<button type="submit" class="center btn btn-primary">Download</button>

								</s:a>
							</s:if> <s:else>
								<button type="submit" disabled="true"
									class="center btn btn-primary">Download</button>
							</s:else></td>
						<s:textfield name="s1" value="customer_profile" cssClass="oculto" />
					</tr>

					<tr align="left">
						<td>RFC:</td>
						<td><s:checkbox name="box2" id="box2" theme="simple"
								disabled="!enabledCheckRFC" /></td>
						<td>VoBo</td>
						<td><s:if test="existe2==true">
								<s:a action="savevobo" method="downRFC">
									<button type="submit" class="center btn btn-primary">Download</button>

								</s:a>
							</s:if> <s:else>
								<button type="submit" disabled="true"
									class="center btn btn-primary">Download</button>
							</s:else></td>
						<s:textfield name="s1" value="rfc" cssClass="oculto" />
					</tr>

					<tr align="left">
						<td>R1,R2:</td>
						<td><s:checkbox name="box3" id="box3" theme="simple"
								disabled="!enabledR1R2" /></td>
						<td>VoBo</td>
						<td><s:if test="existe3==true">
								<s:a action="savevobo" method="downR1R2">
									<button type="submit" class="center btn btn-primary">Download</button>

								</s:a>
							</s:if> <s:else>
								<button type="submit" disabled="true"
									class="center btn btn-primary">Download</button>
							</s:else></td>
						<s:textfield name="s1" value="r1" cssClass="oculto" />
					</tr>

					<tr align="left">
						<td>Sales Call</td>
						<td><s:checkbox name="box4" id="box4" theme="simple"
								disabled="!enabledSalesCall" /></td>
						<td>Vobo</td>
						<td><s:if test="existe4==true">
								<s:a action="savevobo" method="downSalesCall">
									<button type="submit" class="center btn btn-primary">Download</button>

								</s:a>
							</s:if> <s:else>
								<button type="submit" disabled="true"
									class="center btn btn-primary">Download</button>
							</s:else></td>
						<s:textfield name="s1" value="r2" cssClass="oculto" />
					</tr>

					<tr align="left">
						<td>Customer Quotation:</td>
						<td><s:checkbox name="box5" id="box5" theme="simple"
								disabled="!enabledCustomerQuotation" /></td>
						<td>VoBo</td>
						<td><s:if test="existe5==true">
								<s:a action="savevobo" method="downCustomerQuotation">
									<button type="submit" class="center btn btn-primary">Download</button>

								</s:a>
							</s:if> <s:else>
								<button type="submit" disabled="true"
									class="center btn btn-primary">Download</button>
							</s:else></td>
						<s:textfield name="s1" value="msr" cssClass="oculto" />
					</tr>


					<tr align="left">
						<td>Rate Tracker:</td>
						<td><s:checkbox name="box6" id="box6" theme="simple"
								disabled="!enabledRateTracker" /></td>
						<td>VoBo</td>
						<td><s:textfield id="ratetrackertextidform"
								name="transitionBean.ratetrackertext"
								cssClass="txtInputsFormatRO" size="4" theme="simple"
								disabled="true" /></td>
					</tr>
					<tr align="left">
						<td>ACON Debtor Number:</td>
						<td><s:checkbox name="box7" id="box7" theme="simple"
								disabled="!enabledAconDebtorNumber" /></td>
						<td>VoBo</td>
						<td><s:textfield id="acondebtornumbertextidform"
								name="transitionBean.acondebtornumbertext"
								cssClass="txtInputsFormatRO" size="4" theme="simple"
								disabled="true" /></td>
					</tr>
					<tr>
						<td colspan="4" align="center"></br>
							<div class="controls">

								<button type="submit" id="saveAllVoBo"
									class="center btn btn-primary">Save All VoBo</button>
								<%-- 									<s:if test="%{#session.usuarioSession.tra == true}"> --%>
								<%-- 										<s:submit type="button" class="toolbarButton" --%>
								<%-- 											method="insertCheckboxes" value="Save All VoBo" --%>
								<%-- 											theme="simple" /> --%>
								<%-- 									</s:if> --%>
								<%-- 									<s:else> --%>
								<%-- 										<s:submit type="button" class="toolbarButton" --%>
								<%-- 											method="insertCheckboxes" value="Save All VoBo" --%>
								<%-- 											disabled="true" theme="simple" /> --%>
								<%-- 									</s:else> --%></td>
					</tr>
					
				</table>
				LU: <s:property value="lastDateUpdateRequeri" />

			</div>
			<div class="tab-pane fade" id="ios">
				<p>
					<b>Por favor seleccione solamente archivos .7z</b>
				</p>
				<%--      <s:form action="resultAction" namespace="/" method="POST"
						enctype="multipart/form-data">


						<s:file id="abc" label="Customer profile" name="customerProfileFile"	size="40" />
						<s:file label="RFC" name="rfcFile" size="40" />
						<s:file label="R1,R2" name="r1R2File" size="40" />
						<s:file label="Sales Call" name="salesCallFile" size="40" />
						<s:file label="Customer Quotation" name="customerQuotationFile"
							size="40" />
							
							
						<s:textfield id="ratetrackertextidform" name="rateTracker"
							cssClass="txtInputsFormatRO" size="4" label="Rate Tracker" />
						<s:textfield id="acondebtornumbertextidform"
							name="aconDebtorNumber" cssClass="txtInputsFormatRO" size="4"
							label="ACON Debtor Number" />

						<s:submit value="submit" name="submit" />

					</s:form> --%>

				<form class="form-inline" role="form">
					<div class="form-group">
						<s:if test="existe1==true">
							<img src="${pageContext.request.contextPath}/Imagenes/fileOk.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:if>
						<s:else>
							<img
								src="${pageContext.request.contextPath}/Imagenes/file_delete.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:else>

					</div>
					<div class="form-group">
						<
						<div class="col-xs-6">
							<input id="valCustomerProfileFile" type="text"
								class="form-control" placeholder="Choose customer profile"
								readonly="readonly">
						</div>
					</div>
					<div class="fileUpload btn btn-primary">
						<span>Select File</span> <input id="fileCustomer" type="file"
							class="uploadCustomer" data-filename-placement="inside"
							name="customerProfileFile"
							onchange="ponerValorCustomerProfileFile();" />

					</div>

				</form>
				
<!-- 			 file RFC -->
					<form class="form-inline" role="form">
					<div class="form-group">
						<s:if test="existe2==true">
							<img src="${pageContext.request.contextPath}/Imagenes/fileOk.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:if>
						<s:else>
							<img
								src="${pageContext.request.contextPath}/Imagenes/file_delete.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:else>

					</div>
					<div class="form-group">
						<div class="col-xs-7">
							<input id="valCustomerProfileFile" type="text"
								class="form-control" placeholder="Choose RFC"
								readonly="readonly">
						</div>
					</div>
					<div class="fileUpload btn btn-primary">
						<span>Select File</span> <input id="fileRFC" type="file"
							class="uploadCustomer" data-filename-placement="inside"
							name="rfcFile"
							onchange="ponerValorCustomerProfileFile();" />

					</div>

				</form>
				
				
				<!-- 			 file R1,R2 -->
					<form class="form-inline" role="form">
					<div class="form-group">
						<s:if test="existe3==true">
							<img src="${pageContext.request.contextPath}/Imagenes/fileOk.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:if>
						<s:else>
							<img
								src="${pageContext.request.contextPath}/Imagenes/file_delete.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:else>

					</div>
					<div class="form-group">
						<div class="col-xs-7">
							<input id="valCustomerProfileFile" type="text"
								class="form-control" placeholder="Choose R1 or R2"
								readonly="readonly">
						</div>
					</div>
					<div class="fileUpload btn btn-primary">
						<span>Select File</span> <input id="fileR1R2" type="file"
							class="uploadCustomer" data-filename-placement="inside"
							name="r1R2File"
							onchange="ponerValorCustomerProfileFile();" />

					</div>

				</form>
				
				
				
				
						<!-- 			 file Sales Call -->
					<form class="form-inline" role="form">
					<div class="form-group">
						<s:if test="existe4==true">
							<img src="${pageContext.request.contextPath}/Imagenes/fileOk.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:if>
						<s:else>
							<img
								src="${pageContext.request.contextPath}/Imagenes/file_delete.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:else>

					</div>
					<div class="form-group">
						<div class="col-xs-7">
							<input id="valCustomerProfileFile" type="text"
								class="form-control" placeholder="Choose sales call"
								readonly="readonly">
						</div>
					</div>
					<div class="fileUpload btn btn-primary">
						<span>Select File</span> <input id="fileSalesCall" type="file"
							class="uploadCustomer" data-filename-placement="inside"
							name="salesCallFile"
							onchange="ponerValorCustomerProfileFile();" />

					</div>

				</form>
				
				
				
				
				
						<!-- 			 file  Customer Quotation -->
					<form class="form-inline" role="form">
					<div class="form-group">
						<s:if test="existe5==true">
							<img src="${pageContext.request.contextPath}/Imagenes/fileOk.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:if>
						<s:else>
							<img
								src="${pageContext.request.contextPath}/Imagenes/file_delete.png"
								class="img-responsive" alt="Responsive image" width="30px"
								height="30px">
						</s:else>

					</div>
					<div class="form-group">
						<div class="col-xs-7">
							<input id="valCustomerProfileFile" type="text"
								class="form-control" placeholder="Choose customer quotation"
								readonly="readonly">
						</div>
					</div>
					<div class="fileUpload btn btn-primary">
						<span>Select File</span> <input id="fileCustomerQuo" type="file"
							class="uploadCustomer" data-filename-placement="inside"
							name="customerQuotationFile"
							onchange="ponerValorCustomerProfileFile();" />

					</div>

				</form>

				<div class="form-group">

					<s:textfield id="submit1" name="rateTracker"
						cssClass="form-control" size="4" label="Rate Tracker" />
				</div>
				<div class="form-group">

					<s:textfield id="submit2"
						name="aconDebtorNumber" cssClass="form-control" size="4"
						label="ACON Debtor Number" />
				</div>



				<button type="submit" id="submitNewP" class="btn btn-default"
					onclick="saveTxtFiles();">Submit</button>



				<div id="display"></div>
				<div id="previews"></div>



				<!-- 					<button type="submit" id="submitFiles" -->
				<!-- 										class="center btn btn-primary" onclick="submitFiles();">OK</button> -->


				<div>
					LU:
					<s:property value="lastDateUpdateUploadFileRequeri" />
				</div>
			</div>

		</div>
	</div>

</body>
</html>